package com.pattern.once.clainOfResponsbility;

public class TestMain {

    public static void main(String[] args) {
        AbstractClainLogger dubugLogger = new DubugLogger();
        AbstractClainLogger infoLogger = new InfoLogger();
        AbstractClainLogger errorLogger = new ErrorLogger();
        AbstractClainLogger warnLogger = new WarnLogger();
        dubugLogger.setNextClainLogger(infoLogger);
        infoLogger.setNextClainLogger(errorLogger);
        errorLogger.setNextClainLogger(warnLogger);

        Logger logger = new Logger();

        logger.setLevel(4);
        logger.setMessage("WWWWWWWWWWWWWWWW");


        dubugLogger.exeuct(logger);


    }


}
